package com.etone.smartFlow.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.etone.smartFlow.factory.FlowServiceFactory;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.IOUtils;
import org.flowable.bpmn.model.BpmnModel;
import org.flowable.engine.repository.Deployment;
import org.flowable.engine.repository.ProcessDefinition;
import org.flowable.engine.repository.ProcessDefinitionQuery;
import org.flowable.engine.runtime.ProcessInstance;
import org.flowable.image.impl.DefaultProcessDiagramGenerator;
import org.flowable.task.api.Task;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.util.*;

/**
 * 流程定义
 *
 * @author jiayen
 * @date 2021-04-03
 */
@Service
@Slf4j
public class FlowDefinitionService extends FlowServiceFactory {


    /**
     * 申请流程
     */
    public void applyFor() {

    }

    /***
     * 拒绝
     */
    public void refect() {

    }

    /***
     * 完成流程
     */
    public void complete() {

    }

    /***
     * 获取流程图
     */
    public void bpmnImg() {

    }
}
